package cn.edu.scau.cmi.linhongyu.simpleFactoryMethod;

public class MeatFactory {
	public Meat getMeat(int meatType) {
		Meat meat = null;
		switch (meatType) {
		case 1:
			meat = new Pork();meat.getName();break;
		case 2:
			meat = new Beef();meat.getName();break;
		case 3:
			meat = new Chicken();meat.getName();break;
		}
		return meat;
	}
}
